
import type {PageResult} from "@/api/Common.ts";
import httpClient from "@/api/client.ts";
import type {SearchRequest, SubmissionVO} from "@/api/Submission.ts";

export const SubmissionApi = {
  search: async (param: SearchRequest): Promise<PageResult<SubmissionVO>> => {
    const {data} = await httpClient.post<PageResult<SubmissionVO>>(`/submission/search`, param)
    return data
  },
}
